        {
	 uint8 *S=PALRAM+cc;
	 uint8 c1,c2;
         
	 c1=((C[0]>>1)&0x55)|(C[8]&0xAA);
         c2=(C[0]&0x55)|((C[8]<<1)&0xAA);

         P[6]=S[c1&3];
         P[7]=S[c2&3];
         P[4]=S[(c1>>2)&3];
         P[5]=S[(c2>>2)&3];
         P[2]=S[(c1>>4)&3];
         P[3]=S[(c2>>4)&3];

         P[0]=S[c1>>6];
         P[1]=S[c2>>6];
        }
